package com.xiao.service;

import com.xiao.uitl.es.ESUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;

@Service
public class ESServiceImpl implements ESService{
    @Autowired
    ESUtil esUtil;
    @Override
    public String ESInit() throws IOException {
        String init = esUtil.init();
        return  init;
    }

    @Override
    public String search(String keyword) throws IOException {
        String search = esUtil.search(keyword);
        return search;
    }


}
